package com.qingfeng.qfcms.controller.Admin.dictionaries;

import com.qingfeng.qfcms.controller.BaseController;
import com.qingfeng.qfcms.domin.Dictionaries;
import com.qingfeng.qfcms.page.Page;
import com.qingfeng.qfcms.service.DictionariesService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by User on 2016/8/9.
 */
@Controller
@RequestMapping("dic")
public class DictionariesController extends BaseController {


    @Resource
    private DictionariesService dictionariesService;
    @RequestMapping("/lst.shtml")
    public String lst(Page<Dictionaries> page, Model model){
        List<Dictionaries> dictionariesList=dictionariesService.findPage(page);
        model.addAttribute("dictionariesList",dictionariesList);
        return "/admin/frame/dictionaries/dic_list";
    }
}
